//
//  EIRadioButton.h
//  EInsure
//
//  Created by ivan on 13-7-9.
//  Copyright (c) 2013年 ivan. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol RadioButtonDelegate;

@interface RadioButton : UIButton {
    NSString                        *_groupId;
    BOOL                            _checked;
    //id<QRadioButtonDelegate>       _delegate;
}

@property(nonatomic, assign)id<RadioButtonDelegate> delegate;
@property(nonatomic, copy)NSString *groupId;
@property(nonatomic, assign)BOOL checked;

- (id)initWithDelegate:(id)delegate groupId:(NSString*)groupId;

@end

@protocol RadioButtonDelegate <NSObject>

@optional

- (void)didSelectedRadioButton:(RadioButton *)radio groupId:(NSString *)groupId;

@end
